package com.beaven.model.utils;

import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
import com.raizlabs.android.dbflow.structure.ModelAdapter;

/**
 * author: Beaven
 * time: 2017/5/18 11:42
 */

public class DBFlowExclusionStrategy implements ExclusionStrategy {
  @Override public boolean shouldSkipField(FieldAttributes f) {
    return f.getDeclaredClass().equals(ModelAdapter.class);
  }

  @Override public boolean shouldSkipClass(Class<?> clazz) {
    return false;
  }
}
